#pragma once
#include "D3D9.h"
#include "WareTypes.h"
#include "WareEngineNameSpace.h"

BEGIN_WARE

class CD3D9Graphic;

class CRenderStack
{
public:
	CRenderStack( CD3D9Graphic* pGraphic );
	~CRenderStack(void);

	VBOOL		Init( int32 nVertexBufferSize, int32 nIndexBufferSize );
	void		Release();

	void		OnDeviceLost();
	void		OnDeviceReset();
	
private:

	CD3D9Graphic*					m_pGraphic;
	int32						m_nVertexBufferSize;
	int32						m_nIndexBufferSize;

	IDirect3DVertexBuffer9*		m_pVertexBuffer;
	IDirect3DIndexBuffer9*		m_pIndexBuffer;
};

END_WARE
